import path from "path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import qiankun from "vite-plugin-qiankun";

const useDevMode = true;

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    qiankun("viteApp", {
      useDevMode,
    }),
  ],
  server: {
    port: 8093,
    cors: true,
    host: "0.0.0.0",
  },
  resolve: {
    // 配置路径别名
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
});
